import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import "@/mock";
import { Message } from "element-ui";
import { MessageBox } from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css'
Vue.config.productionTip = false;
import TabBar from "@/components/TabBar";
import NavBar from "@/components/NavBar";
import Carousel from "@/components/Carsouel";
import Scroll from "@/components/scroll";
import SearchInput from "@/components/SearchInput";
import "swiper/css/swiper.css";
Vue.component(NavBar.name, NavBar);
Vue.component(Scroll.name, Scroll);
Vue.component(Carousel.name, Carousel);
Vue.component(TabBar.name, TabBar);
Vue.component(SearchInput.name, SearchInput);
Vue.prototype.$message = Message;
Vue.prototype.$confirm = MessageBox.confirm
new Vue({
  beforeCreate() {
    Vue.prototype.$bus = this;
  },
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
